package com.oracle.xmlns.PatientService.setOrderProcess.setOrderProcess;

public class SetOrderProcessProxy implements com.oracle.xmlns.PatientService.setOrderProcess.setOrderProcess.SetOrderProcess {
  private String _endpoint = null;
  private com.oracle.xmlns.PatientService.setOrderProcess.setOrderProcess.SetOrderProcess setOrderProcess = null;
  
  public SetOrderProcessProxy() {
    _initSetOrderProcessProxy();
  }
  
  public SetOrderProcessProxy(String endpoint) {
    _endpoint = endpoint;
    _initSetOrderProcessProxy();
  }
  
  private void _initSetOrderProcessProxy() {
    try {
      setOrderProcess = (new com.oracle.xmlns.PatientService.setOrderProcess.setOrderProcess.SetOrderProcess_epLocator()).getsetOrderProcess_pt();
      if (setOrderProcess != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)setOrderProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)setOrderProcess)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (setOrderProcess != null)
      ((javax.xml.rpc.Stub)setOrderProcess)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.oracle.xmlns.PatientService.setOrderProcess.setOrderProcess.SetOrderProcess getSetOrderProcess() {
    if (setOrderProcess == null)
      _initSetOrderProcessProxy();
    return setOrderProcess;
  }
  
  public void process(int userId, int dayId, int foodId, int drinkId) throws java.rmi.RemoteException{
    if (setOrderProcess == null)
      _initSetOrderProcessProxy();
    setOrderProcess.process(userId, dayId, foodId, drinkId);
  }
  
  
}